a few bug fixes to EqDep.