corrected place where readNext() was invoked to insert it in entries pages