minor fix for flags_on