Corrected division by zero error.