Fix bug when vectors of action lists get reallocated