fixed warning in ios7