fix unset bug