Fix bug on paste