404 page undefined function error fixed