Correct some bugs in the mixed mode