Fix error with q= and order=date