fix the gd