Fix delete tmp in main