Fixed crash when opening locked profile