fixed a bug where spike amplitudes were not saved propoerly