fix delete key bug