fixed error with rendering empty graphs