fix collision entries when removing layer