fix bug with removing data from a refList pointing to data in another refList