fix issue with getting non-required inputs marked as required (see #105)