Fixed bug with periods appearing at the beginning of samples.