Fix SGS grid functions to mixins