fixed display crash and sigint catch