added some code to debug the ie9 issue