Fixed exception when editing transaction