fix absolute/relative path bug