Fixing the train to go around the tree