fix for death on keypress