fix a bug of pasting list