Fixed input option parsing bug