On the robust inference for generalized linear models