Fixed error in data parsing code