added fix of offline mode resource data structure