fix bug on MultiMap remove

fixes #1667