Removes global g