fixed AutoLayout bugs.