fix indices to get left and right network