Fix day of week query