multiple template result generation scripts and objcorr NaN bug fixed