fixing issue when userDefaultsKey is unset