Fixed bug in GDM.r for numSignal==0