small fix segement on escape