Fix IOS7 lost context problem