Fixed bug which happens when init view mode is two pages