fix for [__NSArrayM objectAtIndexedSubscript:]: unrecognized selector sent to instance. objectAtIndexedSubscript is only available for iOS >= 6.0. use objectAtIndex instead