fixes jQuery cleaning data and triggering a remove event