[FIX] Pass context as period_id