fixed a bug in the core route creation module