bug fix

metadata download function not working