Fixes remove by index.