Fixed iOS 6 compability