fix graph scalling