fixed main routing error