fix homepage error