fix the paste bug