fixed warning for ios7