Make 'Duplicate current tab' work again

It stopped working at some point.