fixed accept to ignore in ignoregroup function