fix code which downloads submissions