Fix agent side branch and verion fetching attributes

It may be copy miss of 752788de.