Fix some bugs
update code version