Fixed periodic basting bug and past data point graph issue