fix unbound local error

simple typo