Fixed a bug where ObjectId representations were not being applied.