fix a bound error in dos_tree