fix generate path.