Fixed an issue in correct recognize hostmask