Fixed a bug of wildcard for states.