Fix the depth issue