Agent fixes

Tests needed
typo, missing :