html5 view template bugfix