tx parser fixes (dont crash, but still does not seem to work).

Signed-off-by: Karel Tuma <karel.tuma@gmail.com>