Fix actions bug for the first created record