modules weren't getting reset when calling Formula.set_package