Fixed issue on iOS6 with base SDK 8