fixed MSTDC bug