fixed string overflow bug