remove warnings, support iOS7