Makes gd work properly again