ensure numbers are parsed correctly in query