Bugfixes

Fix possible threading issue with end station array.