Fixed delete key bug