fix for 500 error on non-int int query parameters