fix the bug that record the views