fixed errors reporting in collection+json