Single UE attach/detach

I attached single UE one time and detached the same UE , again I need to attach the same UE and i have given same ran id and suci value as before attach, but amf id is allocating as 2 instead of 1 and amf entity is giving an warning like “amfue is nill” and pcf also giving an warning like “amf status does not implemented”
can you help me regarding root cause of this issue?