Fixed query rejected error.