fixed tex rendering in editor box