Hi,
Please check the item internal program values from where it is filling in driver program if it is correct please check WRITE_FORM is called for 2 times,In script please check printing values variables used for two times? These all are the possible reasons.
Regards,
Ravi Shankar L