Fixed a bug about shortcut deletion.