Bug fix: Label number for logical operations