amend wrong flag setting.