fix on the email query