fixing an error when multiple items use add clear