fixed 'graduallyChangeSoundVolume' function