Workaround for strange ScalarLogical behaviour.