Robustify the setting of implied flags