fix NPE on /download