addTransaction fix