fixed a bug in reconfiguration