Fix for recordingEnd event listeners