fix depth calculatio