Fix adding components and graphs to a project