Fixed bug with track folding