fix attempt to prevent possibility of div-by-zero

I used the variable copy method you suggested yesterday.

Eric