Fix text plugin bug