BUG: Period slicing with period_range returns error