Fixes a bug in the sound library