fixed a pasting bug