Cleanup flags on profile