fixed bug of not deleting messages after they were printed