bug fix on purgeAdatpor