fix bug in helper and show.html.erb