fixed uncommon bug in invproject