Fix console text deletion