fix syncing photos operation