fix unbound var error locally