fix autosize input initialization