fixed ios8 deprecations