Fix sound not being played at the correct place.