fix bug in volume write