Fix unbound local variable.