Fix for sgs