fix bug in render text, Do, and re commands.