make sure record is created after insert