Fixed some warnings from iOS7