fix the solenoid construction problem