iOS6 Support, thanks @yakubbaev