fix calculate page bug