fixed an error in setVolume