initialize instead of assert to fix warning

change assert to initialize on undefined variable