fixed bug when no profile exists