terraform: fixing tons of panics