Fix DI bug with view prototype inheritance