fix bug in multiple remove operation generation