Fixed bug with autolayout.