catch error if no profile