A change in calculating depth is happened, but it has bugs