Fixed bug in setting volume