Fixed bug in view.html.