Fixed a bug in homepage delete button.