fix for json that can't be parsed