fix for handling protocol name starting with other protocol name