Prevent tree wrap-around