fixed GPF in two functions when page parameter is invalid (pbly more functions are affected)