fixed a bug on the home page