Fixed bug when selecting the location to paste