fixed bug with empty profile being loaded