diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 83e513e..f098c31 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -91,11 +91,12 @@ module Rbpkg
<ul class="list-group">
EOF
sublogs.each do |d, sublog|
- sublog.img = status_img(sublog.status)
- sublog_html = sublog.html.to_html
+ sublog_img = status_img(sublog[:status])
+ sublog_html = sublog[:html].to_html
+ sublog_status = sublog[:status].to_s.to_html
output.puts <<-EOF
<li class="list-group-item">
- <img src="#{img}" class="status-#{sublog.status.to_s.to_html}"/>
+ <img src="#{sublog_img}" class="status-#{sublog_status}"/>
<a href="#{sublog_html}">#{sublog_html}</a>
</li>
EOF