Fixed autolayout issue for iOS 6.