register route bug fix