Fix view bug.