Fixed all terminal errors for the pre-graph construction phase