fix a bug parsing complex numbers (could be "Infinity")