fixed pendulum bug for new datasets appending to old datasets