fix downloading resources from the cdn