Fix small bug in 'divide' function.