fixes to GBM functions to work with updated sunpy.