small fixes for getFileGraph