fix word parsing