fixed a few key not exist error and division by zero error in Dashboard