fixed bug in errorhandling of corrupt json