fixed segfault on Solenoid when loading from cache