repair array slice at event trigger