fixed overpging bug