fixed & improved assertion; thanks to Hans Ulrich Niedermann