fix(router): change initialization order.