fix bug when the current project is not validly assigned