fix errror parsing