Fixed dividing on 0.