router: fix boolean response issue