Fix volume function.