Fixed issues with scaling and graphs.