fix small bug for user empty query