Fix some bugs in the dashboard page.