fix a bug if sound context not available