Fixed Small Bug in Function for Home Page