Fix: remove item from local storage when published