Fixed renaming sound breaking references to that sound.

Fixes #280.