Fixed npe on on adding new project