Fixes gd plots