Fix some bugs in the dashboard.html.