3rd attempt to fix depth issue