fixed bugs with no profile loaded