fix unbound variable