fixed error with pasting