Fixing wrong boolean code [ci skip]