Page sort bug fixed