Fix case where a second materializeData wiped data