Fix duping items via shift+click and esc