fix unitialized current page and position