fixes boolean behaviour

fixes #1969