Mainly iphone 5 fixes