fixed problem when loading new profiles