Fixed a bug on the main page