Fix improper gg_mk(s)temp implementation