fix some code in project7