fix bugs in theme.scala.html