Small fixes for snmp agent.