Hack to delegates to avoid crash in iOS 8