fixed view bug.