added checks to ignorator restore function