fix applicaiton routes bug