Fix a bug in router loader.