crash on opening database with no profile loaded