Fix view bug