1. Fix js patch, dont use `for in` to iterate an array