Bug fix

Updated a bug in gms where data from the sampling object might not be
loaded correctly.