Fixed error when page was not set