fix some bugs
update license