Fix edit track bug