Fixed possible divide by zero

Signed-off-by: Brandyn A. White <bwhite@dappervision.com>