fixed error when no graphs is added to the dashboard