fixed the transaction adding lots into permits and vice versa