Boolean addition and multiplication raises error

#8441