fixed ios 6 sdk compatibility