Just set the the all array elements to NULL, that should fix it. Otherwise, you can get some undefined behaviour in your module, similar to srf.
You can also do that in the statement following ":", its actually a comma separated list.
":VESSEL4(hVessel, flightModel), th_group({0})...