fix unset error