Update validator.js

fix bug "index of Array is out of bound" when validator try to update limiter after binding events in a loop.