fixes boolean behaviour