solve some bugs and rebuild code.