fix bug in connector