fix bug of PagingSwitch