fixing error when recurrence_period is not present