fixed some problems with collection+json