avoid ie8 crash