Fixed "invalid calling object" error in IE 10