Fix crash error for IOS 7