complete removeControlFlag.