Fix issue with mongo id not necessary long.