Fix error in cut and paste