fix error for relative path generator