fix ps upload photo crash issue