Fixed bugs in format selection
Autoscale support