Fix crash when profile not specified