fix crash in case of newly created profile