bugfix for when appdata not yet created