Fixed type in complex query parser