Remove unneccessary local variable pageCount
Miss to roll back default values