Fixed volume calculation when using customHeight (closes #580)