Minor fix for ontheflyreplacer throwing errors.