Some iOS6 fixes