fixed crash bug related to sound on an actual device.