fixed some project bugs