fix bug on page view