Fix to glitching sound (not tested)

Fixes #37