Fixed error parsing input options