fix query view