fix inconsistent naming (flag to flags)