Bug Fixed: if no connection --> no more "undefined" train