Fix for syncing photos and duplicate syncing issue