Fix removal of content on ctrl+c