hwaf-base: fix infinite resursive loop