Fix IE9 bug for activity wrapping