bugfix.correctly merge booleans