fixed issue with smoothSpikes.m