Fixed bug in page_select write reported by Kurt and Steven