bugfix refinemesh.