Fixes bug when using includes combined with select, the select statement was overwritten.