fix match for hostname