removing the projects.delete(p) when detecting a cirucular reference