fixed disappearing gallery on app reload