bug: fix pageradapter caused crash