fix relpath issue