fix global leak

forgotten `var` statement when defining `defaults` causes a leaked global