Fixed delete visible on empty query queue issue