fixed the cross edge allocation