Fixed RuntimeException (Inconsistent Graph)