Fix master gain value not restored