Warning fix

Added a single line to fix a divide by zero warning message.