fix issue with longs being treated as doubles