fixed keyboard interrupt