period date fix