Fix find by agent code