Small fix

Dividing by zero is bad.