fixed a crash on update downloading