viewPort and rootNode fix