fixed routes bug