Fixed #1615 correct some mistakes for JSB