fixed a class error in the main index page