Fix error with volume calculation