fix some bugs, the module can work