[IMPROVEMENT] added compatibility with iOS6