Fixed error related to page being set to 0