Fixed divide by zero error.