train target index fix