fix bugs
Merge branch 'dev' of https://github.com/railproject/trainplan into dev