Sprite Grid Positioning issue cocosd-js 3.16

I am making a 2d(25x20) grid of sprites. But somehow sprites are getting re positioned by itself. i.e

here is code snippet i am using:
for (var i = 0; i< 25; i++){
for (var j = 0; j< 20; j++){
var block = new MMLandBlockSprite();
block.initWithData(res.BlockBlack,prices[blockCounter],this.LAND_BLOCK_TAG);
block.setPosition(cc.p(block.getContentSize().width0.5 + i * block.getContentSize().width * 1.0, (this._size.height - block.getContentSize().height0.5) - j * block.getContentSize().height * 1.0));
this.addChild(block);
}
}

And same code is working fine over cocos2d-x(c++).
Thanks.