fix bug with relative path