Fix "paste" bug