fixed random text insertion