Fix a crash when switching stations

Closes #137
v1.1.17