fixed wordpath bug