Fixed an error in madd()