[FIX] emtpy query fix