fixed an issue with loading profiles