fixed bugs in semtrex parsing