Fixed bug occurring when no detected spikes