Finally fixed gg=g!