Fix was_on_route to be initialized correctly