Fix bug: file name should be relative path to root