bug fix in sync agent base