Fixed the mismatch between NSLayoutAttributeLeading and NSLayoutAttributeRight.