For some reason, the flag wasn't locked properly, so it gets overwritten when the egregious parameter setting code is executed again