fix warning and error in ios7