Fix error in parsing code