Bug fixes

Fixes to load_sampling_object in gms.py