fix bug on splitting text