fix empty rows in graph