Bugfix for exterior invariant

fixes #19