fix unbound vars