When copying certain entities (such as flying lamps), undoing becomes glitched. Undoing the copy works as intended. After that, though, undoing again does not remove the initial entity. If this "phantom" undo is then reversed with a redo, a second entity appears in the same tile as the first. I believe this is the case for every entity, but it's most visible on moving entities.