Volume calculation bug fix - fixes 388

Fixes #388.