#1 autosize fix (removed test part of code)