Fixed attributes for iOS 8 compatibility