fix missing callback on err