fix global i
Merge branch 'master' of https://github.com/fireball-x/core