bug correction on upload photos