Fixes query argument type