fix gridGraph