fixed a bug where spikes would not be saved if the first trial was discarded and the second was not