Fixed issue with multiple row_to_json calls