fix bug when no profile already exists