Fixing toLongs