fix libgd3 order