fixed graph scaling