fix persistence of empty data