Fixed the bug where dismissing an item above a dismissed item would leave the wrong item dismissed