minor fixes on view resolver