Fixing errors on index page