preven tree list wrap around