Fix bug when no profile exists