keyboard interrupt fix