fixed Empty profile crashes the app with warning