corrected page parsing using the  variable instead of