diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 8a8dcd7..c0b0adb 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -125,8 +125,8 @@ EOF
FileUtils.cp(subdir_file, file)
subdir_file_html = "#{subdir_file}.html"
FileUtils.cp(subdir_file_html, "#{file}.html")
- log_item = {log: subdir_file,
- html: subdir_file_html,
+ log_item = {log: "#{d}/#{subdir_file}",
+ html: "#{d}/#{subdir_file_html}",
status: status[name][d_name]}
if ! log[name]
log[name] = {}