fixed editing a transaction