fix unbound var