bug fix in route