Fix problem with profile loading