fix bug in texts manager