Remove bug in delPeriod