issue of MapModel about refreshing resources fixed.