fixing minor logic using p4-fix-hostname