fix the error for photo