fix bug in bt_newpage for fileio version