Fixed null ref exception SignalGenerator