Fixed variable and added error page data to logs