fix closure bug

sometimes will always open the last action item.