fix some project bugs