mix unbound local error