diff --git a/Source/Processors/LfpDisplayNode/LfpDisplayCanvas.cpp b/Source/Processors/LfpDisplayNode/LfpDisplayCanvas.cpp
index fef3567156268fe7a9be2ce97d531ae2a6bd9b4c..287e9d42617165d4b1c9b0ddf7bb51d542a08c40 100755
--- a/Source/Processors/LfpDisplayNode/LfpDisplayCanvas.cpp
+++ b/Source/Processors/LfpDisplayNode/LfpDisplayCanvas.cpp
@@ -948,7 +948,10 @@ void LfpDisplayCanvas::loadVisualizerParameters(XmlElement* xml)
 
 channelType LfpDisplayCanvas::getChannelType(int n)
 {
-	return processor->channels[n]->getType();
+	if (n < processor->channels.size())
+		return processor->channels[n]->getType();
+	else
+		return DATA_CHANNEL;
 }
 
 channelType LfpDisplayCanvas::getSelectedType()