Fixing FileTree behaviour when hidden and redisplayed.