fixed wrong swap instructions