Fix bug in grouping ink to previous group.