Fix graphite exception