fix missing error import