fix can't alias resolve on nested namespace.
update InputModel & InputSpec