Fixed the long press quit program issue