[1035545] Only traverse up to the minimum length