fixed a bug in thread view controller for page number