trainlimitid not being written to purchase