Dave's fix to profile validation bug