Fixed the quit button on post day to prevent memory leaks