fixed a bug in the get and set region methods for volumes