Fix crash on delete of active profile