fixes for graph rendering