Fix issue with collection JSON representation.