fixed graph directory segfault