fixes order of photos sync