Fix thread page numbers