Fix display transition in IE