adhocapd: minor bugfixes