Fixes query for a single date