fix for unset error