properly set tx.in_count