minor bug fixes with compare/update process.