Fixed bug in gdtout