Fix method last nextgroup issue