Fix condition for error message of signature script