Fix bug in router that skipped onchange handler