Fix a divide by zero error