Fixed erroneous behavior when parsing faulty inputs.