fix #268

Various places needed to have the constant 'page' changed to the define