iOS>=7 check fixed