fixed empty query