Fix divide by zero exception, whoops!