Prevents crash in iOS6