Fix bugs for textareas