Just a bug fix at swapRow usage