bug fix when setting volume