fixed problem of propagating indices