fix ErrorLog Factory