fix bug that graph was not finished automatically when a bbox was specified