Fixed critical bug in words' splitting