small fix in  origin address scanning