Make sure that numeric values are queried properly