Bug fix for same item being displayed repeatedly on undo after pop.