Fix for flags changed events.