Fix typo that will result in divide by zero