Fix bug in gdt-plot introduced with commit 2fadbc34