fixing bug with appdata