fixed auto generating trains (maybe)