Fixed parsing of main page