Fix wsod in pin private file download

#4202 

@sagotsky Can you take a look, what we were talking about when you left.