Bugfix - output was inverted