fixing relative path bug