fixed query on edit profile view