fix granite compile error