Fix bug of opening multi-pages when clicking