Fix problems with auto photo sync