fixed crash bug with cust profile