fix subscripting issue for ios5
Merge pull request #116 from iiilx/master

fix subscripting issue for ios5