fixes toeditStimulus method which was quite fragile when loading older
protocols