fix bug to get the volume