fixed initilalization of appdata on migration