Updated
Fixed lua errors when spawning train