fix bugs in setting adapter: error when getting pictures from cache
folder.