Fixes problems with iOS versions earlier than 6.0