fixes relative path bug.