fix ErrorList not defined error