fix the relative path bug