Added initialization to the stack variable of View.