fix bugs in csma rx & tx path