fixed a bug where the first item could not be deleted