Fix IE "invalid calling object" bug.