             else
             {
                 self.items = [:]
+                self.references = []
                 self.picturesLoaded()
                 
                 return

                continue
            }
            
            if firebasePicture.status == FDatabaseModelPicture.Status.synced
            {
                if let loadedItem:MPicturesItem = self.items[pictureId]
                {

                    let newItem:MPicturesItem = MPicturesItem(firebasePicture:firebasePicture)
                    items[pictureId] = newItem
                }
                
                let pictureReference:MPicturesItemReference = MPicturesItemReference(
                    pictureId:pictureId,
                    created:pictureCreated)
                
                references.append(pictureReference)
            }
        }
        
        references.sort()
        { (referenceA, referenceB) -> Bool in
            
            let createdA:TimeInterval = referenceA.created
            let createdB:TimeInterval = referenceB.created
            
            return createdA > createdB
        }
        
        self.items = items
        self.references = references
        picturesLoaded()
    }
    
