fix problem with router init