fixed an issue generating an error in ie8