Fix divide by zero preprocessor error