free_gfx fix