Fixing deleting a transaction