Add missing end tranaction