fixed bug with custom_data not referencing correct version