Fixed bug paste code