Fixed small bug in bob.math