small fixes for autofit