Fixed view initialization issue.