fix SD indices