fix on ios7 deprecated