Fixing a bug in setting volume.