Windows state ignore index and fix bugs