diff --git a/IPython/html/static/notebook/js/textcell.js b/IPython/html/static/notebook/js/textcell.js
index 95be52c08..2f44bfdba 100644
--- a/IPython/html/static/notebook/js/textcell.js
+++ b/IPython/html/static/notebook/js/textcell.js
@@ -164,8 +164,8 @@ define([
* */
TextCell.prototype.set_text = function(text) {
this.code_mirror.setValue(text);
+ this.unrender();
this.code_mirror.refresh();
- this.rendered = false;
};
/**