Fixing an error on the main page