fix to reconfig bug