DateQuery fixed

Small bug fix, but it would lead to be DateQuery useless