fixed an issue with the main page