Fixed the Object ID to long ID conversion