fix some bugs, part of dashboard cards