Query parameter change

Changed a long time ago - but just starting to get bugs now