fix loop break error
Merge branch 'dev' of https://github.com/railproject/trainplan into dev