fix gd-last