unbound local error potential fix