fix a bug cannot paste large strings.