command getData while read bug