So dumb. Forgot to initialize variables.