Fix markup text director bugs.