SubForm Script Problem After First Row

SubForm Script Problem After First Row

Hi, 

i have a form and a subform under it. I save engine records on my main form. and want to add spare parts to sub form. But my script is nor working well after try to add second record to sub form. I try to explain with the image on attachment. 

Thanks for help.