fix old statictreebarrier