removed divide by zero error
Merge pull request #231 from CraigPorter/qc_divide_by_zero_error

removed divide by zero error