fixed autoscaling and display bugs