fix tuple reading for Hadoop mode