Fix dashboard widget bugs.