If you've allocated the incorrect transactions together, you can unallocate them.
Alternatively, if you can't unallocate, you can delete or reverse the transaction and then re-enter it.
NOTE: Certain transactions can't be unallocated. If you're unable to unallocate.