fix missing err