Fixed delete bug on focus