fix inserting a profile