Bug fix for DateQuery object