Fixes to update flags