fixed autolayout-generated issues