Fixed bug disabling messaging at end of period