fix homepage loading