fix bug of connection & token collection