Volume: fix integer/long conversion. See #313