Fixed bug in sam.out when datapoints were missing in the input data