fixed some errors about cx