correctly set boolean value