Make sure profile is defined