removed the redundant declaration of id in MemGraph which should fix a bug