fixed offset bug which caused sub nodes to be rendered wrong