photo server bug fix and rebuild