fixes delete project bug that sets current project to null