bug in setup-inference.R