Fixed issue with  dynamic periods.