Fixed bug in OptionsFunctionalityNode::wordDistance