Fixed couple of iOS7-related crashes