fix swap cmd