Fix issue with include query.