fix graph scaling