fixed autofit calc