fixed potential segfault in equilibration