http://ontouchstart.github.io/blog/#13-07-23 bug fix