Fix a possible 'Division by zero'