fixed bug when pasting a text with commas