fix some bugs in traffic correct