Fix graphite code path