fix bugs in preprocess that infinity was treated as identifier