Restore iOS 6 compatibility.