bugfix in manifold