fixed detection of volume

Change-Id: I2ea6d4388b9d1929a34606f345dad8622ae7543d