Prevent possible division-by-zero error.