fix some bug in connector module