Boolean addition and multiplication raises error