fixed ie9 bug where the static events object is not reading the length in the correct way