fix a bug in apply_detail.scala.html