fix: wrapped accessor loop with closure