fix empty profile crash