Fixed crash on profile change introduced by sm integration