We were using uninitialized pageNum!!!