fix bug about splitting the string