fixed warnings when loading dashoard