fix a bug in show delete button